home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / STRUPR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  318 b   |  13 lines

  1. /* strupr.c  From TC Bible page 303  Use strupr to convert anfy lowercase
  2. letters in a string to uppercase. */
  3.  
  4. #include <stdio.h>
  5. #include <string.h>
  6. main()
  7. {
  8.     char buf[80];
  9.     printf("Enter a string with lowercase letters: ");
  10.     gets(buf);
  11.     strupr(buf);
  12.     printf("The string in uppercase is:\n%s\n", buf);
  13. }